package com.nlecloud.bc.model;

import lombok.Data;
import org.bson.types.ObjectId;

import java.io.Serializable;

/**
 * @author warrior
 * @description 用户信息数据库映射封装对象
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 40447204336310997L;

    private String id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private transient String password;

    public User(){

    }

    public User(String id, String username){
        this.id = id;
        this.username = username;
    }
}
